package com.appkubes.fintech.restful.application.pay.wechat.service;


import com.appkubes.fintech.common.exption.BusinessException;
import com.appkubes.fintech.common.response.Response;
import com.appkubes.fintech.restful.application.pay.common.contract.response.NotifyResponse;
import com.appkubes.fintech.restful.application.pay.common.contract.response.PayModelResponse;
import com.appkubes.fintech.restful.application.pay.wechat.request.PayRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 微信支付接口
 *
 * @author ocean
 * @date 2019/06/25 10:53:03
 */
public interface WeChatPayService  {

    /**
     * @description: 所有通道必须实现查询接口
     * @author: xqc
     * @date: 2019/7/18 16:10
     * @params:
     * @return:
     */
    public Response queryPay(PayRequest payRequest);

    /**
     * @description: 发起支付
     * @author: xqc
     * @date: 2019/8/22 14:19
     * @params:
     * @return:
     */
    public Response<PayModelResponse> doPay(PayRequest payRequest) throws BusinessException;



    public Response<NotifyResponse> notify(HttpServletRequest request, HttpServletResponse response,String orderNo);


}
